<HTML>
<HEAD>
<TITLE> SIMPLE User's Guide </TITLE>
</HEAD>

<BODY style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">

<A NAME="top"></A>

<TABLE STYLE="text-align: left; margin-left: auto; margin-right: auto; width: 800px;" BORDER="0" CELLPADDING="5" CELLSPACING="2">
<TBODY>
<TR>
  <TD STYLE="background-color: rgb(153, 153, 153); vertical-align: middle; text-align: center;">
  <DIV ALIGN="right">
    <SMALL><SMALL><A HREF="index.html">Index Page</A></SMALL></SMALL>
  </DIV>
  <B>SIMPLE User's Guide</B> </TD>
</TR>
<TR>
  <TD STYLE="vertical-align: top;">

<H2> Table of Contents
</H2>

<PRE>
   <A HREF="#SIMPLE User's Guide">SIMPLE User's Guide</A>
      <A HREF="#Abstract">Abstract</A>
      <A HREF="#Summary">Summary</A>

</PRE>

<HR SIZE=3 NOSHADE>

<BR><BR>
<A NAME="SIMPLE User's Guide"></A>
<p align="right"><a href="#top"><small>Top</small></a></p>
<H1> SIMPLE User's Guide
</H1><HR SIZE=3 NOSHADE><P><BR><BR><BR>
   Last revised on 2002 DEC 13 by E. D. Wright.
<P>
 
<BR><BR>
<A NAME="Abstract"></A>
<p align="right"><a href="#top"><small>Top</small></a></p>
<H2> Abstract
</H2><HR ALIGN="LEFT" WIDTH=50% ><P><BR><BR>
   SIMPLE is a cookbook program that demonstrates how to use Toolkit
   routines to obtain state vectors.
<P>
 
<BR><BR>
<A NAME="Summary"></A>
<p align="right"><a href="#top"><small>Top</small></a></p>
<H2> Summary
</H2><HR ALIGN="LEFT" WIDTH=50% ><P><BR><BR>
   The SIMPLE `cookbook' program illustrates the use of SPICE SPK ephemeris
   files and CSPICE Toolkit software. The program demonstrates how CSPICE
   routines fit together to solve a typical geometrical problem involving
   state vectors extracted from an SPK file.
<P>
 
   SIMPLE demonstrates the use of the following high-level subroutines:
<P>
 
<DL><DT>
<B>
 <a href="../cspice/furnsh_c.html">furnsh_c</a>
</B><BR><BR>
<DD>
 Load SPICE kernels<BR>
</DL>
<DL><DT>
<B>
 <a href="../cspice/spkezr_c.html">spkezr_c</a>
</B><BR><BR>
<DD>
 SPK, easy reader<BR>
</DL>
<DL><DT>
<B>
 <a href="../cspice/str2et_c.html">str2et_c</a>
</B><BR><BR>
<DD>
 Convert time string to ephemeris time<BR>
</DL>
<DL><DT>
<B>
 <a href="../cspice/et2utc_c.html">et2utc_c</a>
</B><BR><BR>
<DD>
 Convert ephemeris time to UTC string<BR>
</DL>
<DL><DT>
<B>
 <a href="../cspice/vsep_c.html">vsep_c</a>
</B><BR><BR>
<DD>
 Calculate angular separation between vectors<BR>
</DL>
   To run SIMPLE, you need a binary SPK ephemeris file and knowledge of the
   bodies and the corresponding time intervals contained in that file. The
   utility program named BRIEF summarizes the contents and time coverage of
   a binary SPK file. Refer to NAIF IDs Required Reading (<a href="../req/naif_ids.html">naif_ids.req</a>) for
   a list of body names and integer codes. In addition to an SPK file, you
   also require access to a leapseconds kernel (LSK).
<P>
 
   The user enters the string names or NAIF ID codes for two target bodies
   and an observing body, and the end-points (expressed in UTC) of a time
   interval. The bodies may be any objects in the solar system, as long as
   the SPK file loaded into SIMPLE contains data for them during the time
   interval requested.
<P>
 
   The time interval consists of ten (10) equally spaced time steps. SIMPLE
   computes the angular separation, in degrees, between the target bodies
   as seen from the observing body at each time step then displays the
   output to the terminal screen. The application then prompts the user to
   continue with another set of parameters or quit.
<P>
 
   Below, find an example of a SIMPLE run. The session calculates the angle
   of separation between the Sun and the Moon as seen from Earth.
<P>
 
   Please note: FORTRAN and C versions of the program can output numerical
   values in slightly different formats.
<P>
 
   It is assumed the kernel files used by SIMPLE exist in the current
   directory (i.e. the directory from which your execute SIMPLE). This
   particular session was run on an Intel box using the LINUX operating
   system.
<P>
 
   First, create the binary SPK kernel "cook_01.bsp" by running the CSPICE
   Toolkit TOBIN application on the transfer format file "cook_01.tsp"
   located in the CSPICE data directory. The program also requires a
   leapseconds kernel to run; an example leapseconds kernel, 'cook_01.tls'
   exists within the same directory. Now, execute SIMPLE:
<P>
 
<PRE>
 
                       Welcome to SIMPLE
 
   This program calculates the angular separation of two
   target bodies as seen from an observing body.
 
   The angular separations are calculated for each of 10
   equally spaced times in a given time interval. A table
   of the results is presented.
 
 
   Enter the name of a leapseconds kernel file: cook_01.tls
 
   Enter the name of a binary SPK ephemeris file: cook_01.bsp
 
   Enter the name of the observing body: earth
 
   Enter the name of the first target body: moon
 
   Enter the name of the second target body: sun
 
   Enter the beginning UTC time: 1 jan 1990
 
   Enter the ending UTC time: 2 jan 1990
 
   Working ... Please wait.
 
 
   The angular separation between bodies moon and sun,
   as seen from body earth.
 
   From: 1990 JAN 01 00:00:00
   To  : 1990 JAN 02 00:00:00
 
          UTC Time                 Separation
   ----------------------------------------------
     1990 JAN 01 00:00:00         46.25929528 deg
     1990 JAN 01 02:40:00         47.63463504 deg
     1990 JAN 01 05:20:00         49.01248624 deg
     1990 JAN 01 08:00:00         50.39282527 deg
     1990 JAN 01 10:40:00         51.77563064 deg
     1990 JAN 01 13:20:00         53.16088282 deg
     1990 JAN 01 16:00:00         54.54856399 deg
     1990 JAN 01 18:40:00         55.93865792 deg
     1990 JAN 01 21:20:00         57.33114978 deg
     1990 JAN 02 00:00:00         58.72602606 deg
 
   Continue? (Enter Y or N): N
 
</PRE>

</TD>
</TR>
</TBODY>
</TABLE>

</BODY>

</HTML>
